package com.zzyl.nursing.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 护理员老人关联表实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("护理员老人关联表") // 请根据实际表名调整
public class NursingElder {
    
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 护理员id
     */
    @TableField("nursing_id")
    private Long nursingId;
    
    /**
     * 老人id
     */
    @TableField("elder_id")
    private Long elderId;
    
    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;
    
    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
    
    /**
     * 创建人id
     */
    @TableField("create_by")
    private Long createBy;
    
    /**
     * 更新人id
     */
    @TableField("update_by")
    private Long updateBy;
    
    /**
     * 备注
     */
    @TableField("remark")
    private String remark;
}